package org.example.wrapper;

public class QueryWrapper{

    String condition = "";

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public void eq(String columnName, Object value){
        this.condition += " AND "+ columnName + " = '" + value +"'";
    }

    public void gt(String columnName, Object value){
        this.condition += " AND "+ columnName + " > '" + value +"'";
    }

    public void lt(String columnName, Object value){
        this.condition += " AND "+ columnName + " < '" + value +"'";
    }

    public void like(String columnName, Object value){
        this.condition += " AND "+ columnName + " LIKE '%" + value +"%'";
    }
}
